package com.yuyou.train.user.service;

import java.util.List;

import com.yuyou.train.service.api.user.dto.UserMedalItemDetailDTO;
import com.yuyou.train.service.api.user.dto.UserMedalRelationDTO;
import com.yuyou.train.service.api.user.entity.UserMedalItem;
import com.yuyou.train.user.vo.resp.RespUserMedal;
import com.yuyou.train.user.vo.resp.RespUserMedalTop;
import com.yuyou.train.util.bean.PageParams;
import com.yuyou.train.util.bean.Pagination;
import com.yuyou.train.util.bean.ResBoolSimpleInfo;


public interface IUserMedalItemService {
    int deleteByPrimaryKey(String id);
    
    ResBoolSimpleInfo deleteUserMedalItem(String id);

    int insert(UserMedalItem record);

    UserMedalItemDetailDTO selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(UserMedalItem record);
    
    
    List<UserMedalItem> findItemBycategoryId(String medalCategoryId);
    
    List<UserMedalItemDetailDTO> findUserMedalItemPageList(Pagination<UserMedalItemDetailDTO> p);
    
    int findUserMedalItemPageCount(Pagination<UserMedalItemDetailDTO> p);

    Pagination<UserMedalRelationDTO> findUserMedalPage(PageParams pageParams, String userId, String categoryId);
    
    UserMedalItem selectByCode(String code);

    List<RespUserMedal> findMedalByUserId(String userId);
}